﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<BGCMS.Models.SpecialistViewModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Sérfræðingaumsóknir
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="leftside">
        <% Html.RenderPartial("AdminLinks"); %>
    </div>
    <div id="content">
        <h2>
            Sérfræðingar sem bíða samþykkis</h2>
        <table class="tafla">
            <thead>
                <tr>
                    <th>
                        Notendanafn
                    </th>
                    <th>
                        Nafn sérfræðings
                    </th>
                    <th>
                        Tölvupóstur
                    </th>
                    <th>
                    </th>
                    <th>
                    </th>
                    <th>
                    </th>
                </tr>
            </thead>
            <tbody>
                <% foreach (var s in Model)
                   { %>
                <tr>
                    <td>
                        <%: s.UserName %>
                    </td>
                    <td>
                        <%: s.Specialist.Name %>
                    </td>
                    <td>
                        <a href="'mailto:<%: s.Email %>'">
                            <%: s.Email %></a>
                    </td>
                    <td>
                        <%: Html.ActionLink("Nánar", "SpecialistDetails", new { id = s.Specialist.UserID }) %>
                    </td>
                    <td>
                        <%: Html.ActionLink("Breyta", "EditSpecialist", new { id = s.Specialist.UserID }) %>
                    </td>
                    <td>
                        <%: Html.ActionLink("Samþykkja", "ApproveSpecialist", new { id = s.Specialist.UserID }) %>
                    </td>
                </tr>
                <% } %>
            </tbody>
        </table>
    </div>
</asp:Content>